package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * Created by oyhk on 16/7/15.
 */
public class ArticleCategoryDto extends DtoEntity {

    //名称
    @Length(min = 1, max = 6, message = "名称不能超过字数")
    @NotNull(message = "请填写分类名字")
    private String name;

    //显示顺序
    private Integer displayOrderId;

    private String orderIds;

    //平台id
    private Long mallId;

    //父品类
    private Long parentId;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDisplayOrderId() {
        return displayOrderId;
    }

    public void setDisplayOrderId(Integer displayOrderId) {
        this.displayOrderId = displayOrderId;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getOrderIds() {
        return orderIds;
    }

    public void setOrderIds(String orderIds) {
        this.orderIds = orderIds;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "ArticleCategoryDto{" +
                "name='" + name + '\'' +
                ", displayOrderId=" + displayOrderId +
                ", orderIds='" + orderIds + '\'' +
                ", mallId=" + mallId +
                ", parentId=" + parentId +
                '}';
    }
}
